Generation

@Serializable
data class Generation(val id: Int, val name: String, val abilities: List<Handle.Named<Ability>>, val names: List<Name>, val mainRegion: Handle.Named<Region>, val moves: List<Handle.Named<Move>>, val pokemonSpecies: List<Handle.Named<PokemonSpecies>>, val types: List<Handle.Named<Type>>, val versionGroups: List<Handle.Named<VersionGroup>>) : NamedModel(source)

A generation is a grouping of the Pokémon games that separates them based on the Pokémon they include. In each generation, a new set of Pokémon, moves, abilities and types that did not exist in the previous generation are released. See: https://pokeapi.co/docs/v2#generations

Parameters

id

The identifier for this resource.

name

The name for this resource.

abilities

A list of abilities that were introduced in this generation.

names

The name of this resource listed in different languages.

mainRegion

The main region travelled in this generation.

moves

A list of moves that were introduced in this generation.

pokemonSpecies

A list of Pokémon species that were introduced in this generation.

types

A list of types that were introduced in this generation.

versionGroups

A list of version groups that were introduced in this generation.

Constructors

Link copied to clipboard
constructor(id: Int, name: String, abilities: List<Handle.Named<Ability>>, names: List<Name>, mainRegion: Handle.Named<Region>, moves: List<Handle.Named<Move>>, pokemonSpecies: List<Handle.Named<PokemonSpecies>>, types: List<Handle.Named<Type>>, versionGroups: List<Handle.Named<VersionGroup>>)

Properties

Link copied to clipboard
Link copied to clipboard
open override val id: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard